﻿using System.Web.Mvc;
using System.Web.Routing;

namespace FineUIMvc.Senda
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            /*主页面路由-设置默认首页Index*/
            routes.MapRoute(
                name: "Default",
                url: "{controller}",
                defaults: new { controller = "Home", action = "Index", }
            );

            /*主页面路由*/
            routes.MapRoute(
                name: "Pager",
                url: "{controller}/{action}",
                defaults: new { controller = "Home", action = "Index", }
            );

            /*Ajax路由*/
            routes.MapRoute(
                name: "Ajax",
                url: "Ajax/{action}",
                defaults: new { controller = "Ajax", action = "Index", }
            );

        }
    }
}
